﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
using System.ComponentModel;

namespace FotoBrowserWPF.View
{
    public class FotoBrowserViewData:INotifyPropertyChanged 
    {
        public event PropertyChangedEventHandler PropertyChanged;
       
        protected void Notify(string propName)
        {
            if (this.PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propName));
            }
        }
    
 
        public FotoMetadatas FotoMetadatas {
            get; 
            set; 
        }

        ImageSource _imageSource;
        public ImageSource ImageSource { 
            get{return _imageSource;} 
            set
            { 
                if (value==_imageSource)
                    return;
                _imageSource = value;
                Notify("ImageSource");
            }
        }
    }
}
